#!/bin/bash
TOPDIR=`pwd`
DATE=`date +%F`
PACKAGE=`basename ${TOPDIR}`
TARBALL=${PACKAGE}-${DATE}


make clean
cd ..
tar -cvf ${PACKAGE}.tar ${PACKAGE}
mv	${PACKAGE}.tar	${TARBALL}.tar
rm -f  ${TARBALL}.tar.bz2
bzip2 ${TARBALL}.tar
